﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="A_LoaiHang.aspx.cs" Inherits="admin_A_LoaiHang" Title="Untitled Page" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
    <table align="center" style="width: 100%; height: 100%;background-color:c5e183" border="2" >
        <tr>
            <td style="height: 100%; text-transform: capitalize; color: c5e183; font-style: normal; background-color: #cccccc;" colspan="2" align="center">
                Danh Sách Loại Hàng</td>
        </tr>
        <tr>
            <td align="left" colspan="2" style="height: 100%; background-color: #cccccc;">
                Mã Loại :
                <asp:TextBox ID="txtmaloai" runat="server" ></asp:TextBox>&nbsp; &nbsp; Tên Loại :<asp:TextBox
                    ID="txttenloai" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="bttimkiem" runat="server"
                        Text="Tìm kiếm" Width="69px" OnClick="bttimkiem_Click" /></td>
        </tr>
        <tr>
            <td style="height: 10px; background-color: #cccccc;" colspan="2">
              
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
               <a href="A_LoaiHang_insert.aspx">Thêm</a>  &nbsp; <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_x_Click">Xóa</asp:LinkButton></td>
        </tr>
        <tr>
            <td style="height: 13px; background-color: #cccccc;" colspan="2">
            <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                   <thead>
                    <tr class="listtableheader">
                        <th>Mã Loại</th>
                        <th>Tên Loại</th>
                        <th>Sửa</th>
                       <th> <input id="cb_All" type="checkbox" onclick="CheckAll(1);"/>
                      <a href="javascript:CheckAll(2)">Chọn hết</a></th>
                    </tr>
                </thead>
                <tbody>
                </HeaderTemplate>  
                <ItemTemplate>
                  <tr>
                    <td><%#Eval("Maloai") %></td>
                    <td><%#Eval("Tenloai") %></td>
                    <td align="center">
                        <asp:HyperLink ID="hplsua" runat="server"><img src="hinh/sua.JPG" alt="Edit"/></asp:HyperLink></td>
                         <td align="center">
            <asp:CheckBox ID="cb_Xoa" runat="server"  />
            <asp:HiddenField ID="hdmaloai" Value='<%#Eval("Maloai") %>' runat="server" />
            </td>
                  </tr>
                  
                </ItemTemplate>
                <FooterTemplate>
                </tbody>
                   </table>
                
                </FooterTemplate>
               </asp:Repeater>
                       <cc1:PagerV2_8 ID="ptloaihang" runat="server" OnCommand="ptloaihang_Command"/>
            </td>
        </tr>
    </table>
</asp:Content>

